package com.example.vue20220225.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
//@EqualsAndHashCode(callSuper = false)
public class UserInfo extends Mypage implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    //private Integer id;
    private Integer id;
    private String username;
    private String password;
    private Integer status;

    @TableField(exist = false)
    private Integer roleId;
    @TableField(exist = false)
    private String roleName;


    //  直接在里面 写两个属性
    //  继承 page类

    @Override
    public String toString() {
        return "UserInfo{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
